<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>xilplmi: xplmi_glitch_detector_example.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="HTML_custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="xlogo_bg.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">xilplmi
   </div>
   <div id="projectbrief">Vitis Drivers API Documentation</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Overview</span></a></li>
      <li><a href="globals.html"><span>APIs</span></a></li>
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;"
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('xplmi__glitch__detector__example_8c.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">xplmi_glitch_detector_example.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Overview</h2>
<div class="textblock"><p>This file illustrates glitch detector usage To build this application, xilmailbox and xilpm libraries must be included in BSP and xilplmi library must be in client mode. </p>
<p>This example is supported for Versal and Versal Net devices.</p>
<h2>Procedure to run the example. </h2>
<p>Generate pdi with glitch_detection_overlay cdo. Load the Pdi. Select the target. Download the example elf into the target.</p>
<h2>Procedure to test glitch on hardware </h2>
<p>Refer versal plm wiki to configure the glitch detector</p>
<p>This code intends to provide an example to test the glitch detector functionality by generating the test glitch. User must disable that and have a programmable power supply for Vcc_PMC and generate the actual glitch by varying the power supply</p>
<pre>
MODIFICATION HISTORY:</pre><pre>Ver   Who  Date       Changes
</p>
<hr/>
<p>
1.00  pre  06/09/2024 Initial release
      pre  07/15/2024 Added support for SDT flow and fixed misrac warnings
      pre  07/26/2024 Corrected base address for SDT flow
      pre  10/19/2024 Added support for PL microblaze</pre><pre></pre> </div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:gada1b772f34f400391e857ce8189e9efe"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xplmi__client__example__apis.html#gada1b772f34f400391e857ce8189e9efe">GD_STATUS_OFFSET</a>&#160;&#160;&#160;0x00004</td></tr>
<tr class="memdesc:gada1b772f34f400391e857ce8189e9efe"><td class="mdescLeft">&#160;</td><td class="mdescRight">GD_STATUS register offset.  <a href="group__xplmi__client__example__apis.html#gada1b772f34f400391e857ce8189e9efe">More...</a><br/></td></tr>
<tr class="separator:gada1b772f34f400391e857ce8189e9efe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf114951489d482a90a9f58ff288984e9"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xplmi__client__example__apis.html#gaf114951489d482a90a9f58ff288984e9">RESET_GD_STATUS_VAL</a>&#160;&#160;&#160;0x02000200U</td></tr>
<tr class="memdesc:gaf114951489d482a90a9f58ff288984e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Value to reset glitch detectors.  <a href="group__xplmi__client__example__apis.html#gaf114951489d482a90a9f58ff288984e9">More...</a><br/></td></tr>
<tr class="separator:gaf114951489d482a90a9f58ff288984e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae6418598d352531c9382fa4d4b7f6656"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xplmi__client__example__apis.html#gae6418598d352531c9382fa4d4b7f6656">GD_IRQ_STATUS_CLEAR</a>&#160;&#160;&#160;0x80000000U</td></tr>
<tr class="memdesc:gae6418598d352531c9382fa4d4b7f6656"><td class="mdescLeft">&#160;</td><td class="mdescRight">Value to clear IRQ status of glitch detector.  <a href="group__xplmi__client__example__apis.html#gae6418598d352531c9382fa4d4b7f6656">More...</a><br/></td></tr>
<tr class="separator:gae6418598d352531c9382fa4d4b7f6656"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga32dd96c26db1fe40fcfe9d82b4469cff"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xplmi__client__example__apis.html#ga32dd96c26db1fe40fcfe9d82b4469cff">GD0_TEST_GLITCH_GENVALUE</a>&#160;&#160;&#160;0x00F800FEU</td></tr>
<tr class="memdesc:ga32dd96c26db1fe40fcfe9d82b4469cff"><td class="mdescLeft">&#160;</td><td class="mdescRight">Value to generate test glitch on glitch detector0.  <a href="group__xplmi__client__example__apis.html#ga32dd96c26db1fe40fcfe9d82b4469cff">More...</a><br/></td></tr>
<tr class="separator:ga32dd96c26db1fe40fcfe9d82b4469cff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0a46cdc9a668d6db17423996b541a421"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xplmi__client__example__apis.html#ga0a46cdc9a668d6db17423996b541a421">GD1_TEST_GLITCH_GENVALUE</a>&#160;&#160;&#160;0x00FE00F8U</td></tr>
<tr class="memdesc:ga0a46cdc9a668d6db17423996b541a421"><td class="mdescLeft">&#160;</td><td class="mdescRight">Value to generate test glitch on glitch detector1.  <a href="group__xplmi__client__example__apis.html#ga0a46cdc9a668d6db17423996b541a421">More...</a><br/></td></tr>
<tr class="separator:ga0a46cdc9a668d6db17423996b541a421"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa683e3c6282317704413cf5c1368dce6"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xplmi__client__example__apis.html#gaa683e3c6282317704413cf5c1368dce6">GD_TEST_GLITCH_STOPVALUE</a>&#160;&#160;&#160;0x00F800F8U</td></tr>
<tr class="memdesc:gaa683e3c6282317704413cf5c1368dce6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Value to stop test glitch generation on both the glitch detectors.  <a href="group__xplmi__client__example__apis.html#gaa683e3c6282317704413cf5c1368dce6">More...</a><br/></td></tr>
<tr class="separator:gaa683e3c6282317704413cf5c1368dce6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf085f0e2624130dd2e4f2ccbfeef7391"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xplmi__client__example__apis.html#gaf085f0e2624130dd2e4f2ccbfeef7391">GLITCH_DETECTOR0</a>&#160;&#160;&#160;(0U)</td></tr>
<tr class="memdesc:gaf085f0e2624130dd2e4f2ccbfeef7391"><td class="mdescLeft">&#160;</td><td class="mdescRight">Glitch detector0 number.  <a href="group__xplmi__client__example__apis.html#gaf085f0e2624130dd2e4f2ccbfeef7391">More...</a><br/></td></tr>
<tr class="separator:gaf085f0e2624130dd2e4f2ccbfeef7391"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6d5cef9f02ec36417bb9b7c87aa60144"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xplmi__client__example__apis.html#ga6d5cef9f02ec36417bb9b7c87aa60144">GLITCH_DETECTOR1</a>&#160;&#160;&#160;(1U)</td></tr>
<tr class="memdesc:ga6d5cef9f02ec36417bb9b7c87aa60144"><td class="mdescLeft">&#160;</td><td class="mdescRight">Glitch detector1 number.  <a href="group__xplmi__client__example__apis.html#ga6d5cef9f02ec36417bb9b7c87aa60144">More...</a><br/></td></tr>
<tr class="separator:ga6d5cef9f02ec36417bb9b7c87aa60144"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad39f1731ef84b684c0621fb59966d0bc"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xplmi__client__example__apis.html#gad39f1731ef84b684c0621fb59966d0bc">DEFAULT_DEPTH_VAL</a>&#160;&#160;&#160;(0U)</td></tr>
<tr class="memdesc:gad39f1731ef84b684c0621fb59966d0bc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default depth value.  <a href="group__xplmi__client__example__apis.html#gad39f1731ef84b684c0621fb59966d0bc">More...</a><br/></td></tr>
<tr class="separator:gad39f1731ef84b684c0621fb59966d0bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7e7764cd214bd0b121c4038790f02488"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xplmi__client__example__apis.html#ga7e7764cd214bd0b121c4038790f02488">DEFAULT_WIDTH_VAL</a>&#160;&#160;&#160;(0U)</td></tr>
<tr class="memdesc:ga7e7764cd214bd0b121c4038790f02488"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default width value.  <a href="group__xplmi__client__example__apis.html#ga7e7764cd214bd0b121c4038790f02488">More...</a><br/></td></tr>
<tr class="separator:ga7e7764cd214bd0b121c4038790f02488"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga450fc3998f2afadc7c7a63c351311080"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xplmi__client__example__apis.html#ga450fc3998f2afadc7c7a63c351311080">DEFAULT_REFVOL_VAL</a>&#160;&#160;&#160;(0U)</td></tr>
<tr class="memdesc:ga450fc3998f2afadc7c7a63c351311080"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default reference voltage value.  <a href="group__xplmi__client__example__apis.html#ga450fc3998f2afadc7c7a63c351311080">More...</a><br/></td></tr>
<tr class="separator:ga450fc3998f2afadc7c7a63c351311080"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8285a6e55c81192ac85c22109d774a85"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xplmi__client__example__apis.html#ga8285a6e55c81192ac85c22109d774a85">DEFAULT_USERREG_VAL</a>&#160;&#160;&#160;(0U)</td></tr>
<tr class="memdesc:ga8285a6e55c81192ac85c22109d774a85"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default user reg value.  <a href="group__xplmi__client__example__apis.html#ga8285a6e55c81192ac85c22109d774a85">More...</a><br/></td></tr>
<tr class="separator:ga8285a6e55c81192ac85c22109d774a85"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga288dd6c0b364007ccaab7925fca03f3d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xplmi__client__example__apis.html#ga288dd6c0b364007ccaab7925fca03f3d">XPLMI_SET</a>&#160;&#160;&#160;(1U)</td></tr>
<tr class="memdesc:ga288dd6c0b364007ccaab7925fca03f3d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set value.  <a href="group__xplmi__client__example__apis.html#ga288dd6c0b364007ccaab7925fca03f3d">More...</a><br/></td></tr>
<tr class="separator:ga288dd6c0b364007ccaab7925fca03f3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga181bebe1afc9566805bcb3088b49a3fb"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xplmi__client__example__apis.html#ga181bebe1afc9566805bcb3088b49a3fb">XPLMI_RESET</a>&#160;&#160;&#160;(0U)</td></tr>
<tr class="memdesc:ga181bebe1afc9566805bcb3088b49a3fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reset value.  <a href="group__xplmi__client__example__apis.html#ga181bebe1afc9566805bcb3088b49a3fb">More...</a><br/></td></tr>
<tr class="separator:ga181bebe1afc9566805bcb3088b49a3fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga74c344dff3059d963385046f676560c9"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xplmi__client__example__apis.html#ga74c344dff3059d963385046f676560c9">GICP4_IRQ_STATUS_ADDR</a>&#160;&#160;&#160;0xF1140050</td></tr>
<tr class="memdesc:ga74c344dff3059d963385046f676560c9"><td class="mdescLeft">&#160;</td><td class="mdescRight">GICP4_IRQ_STATUS register address.  <a href="group__xplmi__client__example__apis.html#ga74c344dff3059d963385046f676560c9">More...</a><br/></td></tr>
<tr class="separator:ga74c344dff3059d963385046f676560c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gaf9bb7e9b3e6ecd79146a742fc0af0ffc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xplmi__client__example__apis.html#gaf9bb7e9b3e6ecd79146a742fc0af0ffc">GenerateTestGlitch</a> (u8 GdNum)</td></tr>
<tr class="memdesc:gaf9bb7e9b3e6ecd79146a742fc0af0ffc"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function generates glitch on given glitch detector.  <a href="group__xplmi__client__example__apis.html#gaf9bb7e9b3e6ecd79146a742fc0af0ffc">More...</a><br/></td></tr>
<tr class="separator:gaf9bb7e9b3e6ecd79146a742fc0af0ffc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga840291bc02cba5474a4cb46a9b9566fe"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__xplmi__client__example__apis.html#ga840291bc02cba5474a4cb46a9b9566fe">main</a> (void)</td></tr>
<tr class="memdesc:ga840291bc02cba5474a4cb46a9b9566fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Main function to call the ExtractMetaheader example function.  <a href="group__xplmi__client__example__apis.html#ga840291bc02cba5474a4cb46a9b9566fe">More...</a><br/></td></tr>
<tr class="separator:ga840291bc02cba5474a4cb46a9b9566fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
</div><!-- doc-content -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
	<p class="footer">&copy; Copyright 2015-2022 Xilinx, Inc. All Rights Reserved.</p>
	<p class="footer">&copy; Copyright 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved.</p>
</div>
</body>
</html>
